package demo;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

class Person{

    @Override
    public boolean equals(Object obj) {
        return obj == this;
        //引用变量的里面存储的地址是否一样
    }
}

class Student{}



public class Test {



    public static void main(String[] args) {
        function(new Person());
        function(new Student());
        Person person1 = new Person();
        Person person2 = new Person();

        System.out.println(person1.equals(person2));


    }

    public static void function(Object obj){
        System.out.println(obj);
    }


}

